/*
 * StringUtils.h
 *
 *  Created on: Apr 6, 2011
 *      Author: trietto
 */

#ifndef STRINGUTILS_H_
#define STRINGUTILS_H_
#include <FBase.h>
#include <FSecurity.h>

using namespace Osp::Base;

class StringUtils {
public:
	StringUtils();
	virtual ~StringUtils();
public:
	String parseName(String XMPPAddress);
	String parseServer(String XMPPAddress);
	String parseResource(String XMPPAddress);
	String parseBareAddress(String XMPPAddress);
	String escapeNode(String node);
	String unescapeNode(String node);
	String escapeForXML(String node);
	String hash(String data);
	static StringUtils* getInstance();
private:
	static StringUtils* __instance;
};

#endif /* STRINGUTILS_H_ */
